<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>ユーザ管理</title>

<link href="./css/style.css" rel="stylesheet" type="text/css" />
</head>
<body align="center">
<center> <f:view beforePhase="#{loginManaged.doInit}">
	<h:form id="form">
		<table class="tbl_input" cellpadding="4" cellspacing="0" width="400px">
			<tr>
				<th width="120px">&nbsp;</th>
				<th></th>
			</tr>
			<tr>
				<th colspan="2" align="left">アカウント名およびパスワードを入力してください</th>
			</tr>

			<tr>
				<td class="errMsg" colspan="2"><h:messages showDetail="true"
					showSummary="false" styleClass="errMsg" /> <h:outputText
					value="#{loginManaged.errMessage}" styleClass="errMsg" /></td>
			</tr>
			<tr align="left">
				<td class="lbl_left">アカウント名:</td>
				<td align="left"><h:inputText styleClass="txBox"
					onfocus="this.style.borderColor='#0066ff';"
					onblur="this.style.borderColor='#aaaaaa';" id="member_login_id"
					size="20" value="#{loginManaged.loginId}" label="アカウント名"
					required="true" /></td>
			</tr>
			<tr>
				<td class="lbl_left">パスワード:</td>
				<td align="left"><h:inputSecret styleClass="txBox"
					onblur="this.style.borderColor='#aaaaaa';"
					onfocus="this.style.borderColor='#0066ff';" id="password" size="20"
					value="#{loginManaged.password}" label="パスワード" required="true" /></td>
			</tr>
			<tr>
				<td></td>
				<td align="left"><h:commandButton styleClass="btn btn_wider"
					action="#{loginManaged.doLogin}" value="ログイン" /></td>
			</tr>
		</table>
	</h:form>
</f:view> </center>
</body>
</html>